/*字体对齐*/
@textDirection : center, right;
.textAlignMixin (@direction) {
	._text_align_@{direction} {
		text-align: @direction;
	}
}
.textAlignLoop(@index) when (@index <= length(@textDirection)) {
	.textAlignMixin( extract(@textDirection, @index) );
	.textAlignLoop(@index + 1);
}
.textAlignLoop(1);


/*字重*/
@textWeights : bold, normal;
.textWeightMixin (@weight) {
	._text_weight_@{weight} {
		font-weight: @weight;
	}
}
.textWeightLoop(@index) when (@index <= length(@textWeights)) {
	.textWeightMixin( extract(@textWeights, @index) );
	.textWeightLoop(@index + 1);
}
.textWeightLoop(1);


/*字号*/
@textSizes : range(10,100,2);
.textSizeMixin (@size) {
	._text_size_@{size} {
		font-size: unit(@size, rpx) !important;
	}
}
.textSizeLoop(@index) when (@index <= length(@textSizes)) {
	.textSizeMixin( extract(@textSizes, @index) );
	.textSizeLoop(@index + 1);
}
.textSizeLoop(1);

/*margin*/
@margins : range(2,300,2);
.marginMixin(@size) {
	._mt_@{size} {
		margin-top: unit(@size, rpx) !important;
	}
	._mb_@{size} {
		margin-bottom: unit(@size, rpx) !important;
	}
	._ml_@{size} {
		margin-left: unit(@size, rpx) !important;
	}
	._mr_@{size} {
		margin-right: unit(@size, rpx) !important;
	}
	._mg_@{size} {
		margin: unit(@size, rpx) !important;
	}
	.mtb_@{size} {
		margin-top: unit(@size, rpx) !important;
		margin-bottom: unit(@size, rpx) !important;
	}
	._mlr_@{size} {
		margin-left: unit(@size, rpx) !important;
		margin-right: unit(@size, rpx) !important;
	}
	._pt_@{size} {
		padding-top: unit(@size, rpx) !important;
	}
	._pb_@{size} {
		padding-bottom: unit(@size, rpx) !important;
	}
	._pl_@{size} {
		padding-left: unit(@size, rpx) !important;
	}
	._pr_@{size} {
		padding-right: unit(@size, rpx) !important;
	}
	._pd_@{size} {
		padding: unit(@size, rpx) !important;
	}
	._ptb_@{size} {
		padding-top: unit(@size, rpx) !important;
		padding-bottom: unit(@size, rpx) !important;
	}
	._plr_@{size} {
		padding-left: unit(@size, rpx) !important;
		padding-right: unit(@size, rpx) !important;
	}
}
.marginSizeLoop(@index) when (@index <= length(@margins)) {
	.marginMixin( extract(@margins, @index) );
	.marginSizeLoop(@index + 1);
}
.marginSizeLoop(1);


@radius : range(2,100,2);
.radioMixins(@size) {
	._radio_@{size} {
		border-radius: unit(@size, rpx) !important;
	}
}
.radioLoops(@index) when (@index <= length(@margins)) {
	.radioMixins( extract(@margins, @index) );
	.radioLoops(@index + 1);
}
.radioLoops(1);

/*padding*/
.danger-color {
	color: var(--danger) !important;
}
.primary-color {
	color: var(--primary) !important;
}
.warn-color {
	color: var(--warning) !important;
}
.gray-color {
	color: var(--gray) !important;
}
.flex {
	display: flex;
}
.flex1 {
	flex: 1;
}
.flexwrap {
	flex-wrap: wrap;
}
.jcc {
	justify-content: center;
}
.jcsa {
	justify-content: space-around;
}
.jcsb {
	justify-content: space-between;
}
.jce {
	justify-content: flex-end;
}
.jcs {
	justify-content: flex-start;
}
.aic {
	align-items: center;
}
.ais {
	align-items: stretch;
}
.aifs {
	align-items: flex-start;
}
.aife {
	align-items: flex-end;
}
.text_over_elip {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.__common_popup_wrapper {
	padding: 32rpx 32rpx 50rpx;
	background: #fff;
	border-radius: 16rpx 16rpx 0 0;
}
.__common_popup_footer {
	margin-top: 20rpx;
	button {
		width: 45%;
	}
}
.ins-tag {
	background: linear-gradient(180deg, #49CBFF 0%, #0870F0 100%) !important;
}
